package com.cw2.behavioral.state;

/**
 * 环境类
 */
public class SKTTeam {

    private TeamState teamState;

    public SKTTeam(TeamState teamState) {
        this.teamState = teamState;
    }

    // 定义方法
    public void startGame(){
        teamState.playGame();
    }

    // 切换到下一个状态
    void nextState(){
        teamState = teamState.next();
    }

    public void setTeamState(TeamState teamState) {
        this.teamState = teamState;
    }
}
